<?php include 'login/Restrito.php';?>
<?php 
    	$id = $_GET['id'];
    	require_once  "banco/ConexaoBanco.php";
    	
    	$sql = mysql_query("SELECT * FROM reclamacao WHERE id_reclamacao = $id");
    	$dados = mysql_fetch_array($sql);
    	
    ?>
<div id="conteudo">
	
	<div align="center">
   
    <h3 align="center">Reclamação do Paciente</h3>
  	<hr color="#0066FF" size="3px">
    <br />
    <div align="center" style="min-height: 350px; width:auto">
      <table width="700" border="0" align="center" cellpadding="4" >
      
      <tr>
      	<td>Paciente</td>
      	<?php $query = mysql_query("SELECT p_nome FROM paciente WHERE id_paciente = ".$dados['paciente_id']);
			while($lista = mysql_fetch_array($query)) { 
			 	echo '<td>'.$lista['p_nome'].'</td>';
			 }
			 ?>
      </tr>
      <tr>
            <td width="100" align="left"><div align="left">Nome</div></td>
            <td width="600"><?php echo $dados['rec_motivo'];?></td>
          </tr>
          
          <tr>
            <td align="left" valign="top">Reclamação</td>
            <td style="text-align: justify;"><?php echo $dados['rec_descricao'];?></td>
          </tr>
          
          <tr>
            <td align="left">&nbsp;</td>
            <td><a href="?p=lista-reclamacoes" > Voltar </a> </td>
          </tr>
        </table>
        </div>
      
    </form>
    
    </div>
</div>
